package com.chixing.service.impl;

import com.chixing.mapper.ResumeTemplateMapper;
import com.chixing.pojo.ResumeTemplate;
import com.chixing.service.IResumeTemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 简历模板 服务实现类
 * </p>
 *
 * @author Jason Marslyon
 * @since 2022-10-04
 */
@Service
public class ResumeTemplateServiceImpl  implements IResumeTemplateService {

    @Autowired
    private ResumeTemplateMapper resumeTemplateMapper;

    @Override
    public List<ResumeTemplate> selectAll() {
        List<ResumeTemplate> resumeTemplates = resumeTemplateMapper.selectList(null);
        return resumeTemplates;
    }

    @Override
    public ResumeTemplate selectById(Integer id) {
        ResumeTemplate resumeTemplate = resumeTemplateMapper.selectById(id);
        return resumeTemplate;
    }
}
